import Vue from 'vue'
import App from './App.vue'
import VueRouter from "vue-router";
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
// 导入全局初始化样式
import './assets/index.css'


Vue.config.productionTip = false

Vue.use(ElementUI)
Vue.use(VueRouter)

import discovery from './views/discovery'
import playlists from './views/playlists'
import songs from './views/songs'
import mvs from './views/mvs'
import result from './views/result'
import playlist from './views/playlist'
import mv from './views/mv'


const router = new VueRouter({
  routes:[
    {
      path:"/",
      component:discovery
    },
    {
      path:"/discovery",
      component:discovery
    },
    {
      path:"/playlists",
      component:playlists
    },
    {
      path:"/songs",
      component:songs
    },
    {
      path:"/mvs",
      component:mvs
    },
    {
      path:"/result",
      component:result
    },
    {
      path:"/playlist",
      component:playlist
    },
    {
      path:"/mv",
      component:mv
    }

  ]

})


new Vue({
  render: h => h(App),
  router
}).$mount('#app')
